<template>
  <!-- 设置 -->
  <Top-Page :amplifiedBase="amplifiedBase">
    <cu-custom bgColor="bg-gradual-white-3" :isBack="true">
      <template #backText></template>
      <template #content>设置</template>
    </cu-custom>

    <Cell class="cell-2" label="通用设置" rightIcon @click="toUrl('mine/setting')" />

    <Cell label="账号安全" rightIcon @click="toUrl('mine/secure')" />

    <Cell label="我的资料" rightIcon @click="toUrl('mine/profile/index')" />
  </Top-Page>
</template>

<script>
import Cell from '@/components/Cell/Cell.vue';
export default {
  data() {
    return {
      amplifiedBase: uni.getStorageSync('amplifiedBase') || 1
    };
  },
  components: { Cell },
  onShow() {
    this.amplifiedBase = uni.getStorageSync('amplifiedBase') || 1;
  },
  methods: {
    toUrl(url) {
      uni.navigateTo({
        url: `/pages/${url}`
      });
    }
  }
};
</script>

<style lang="scss" scoped></style>
